<?php
/**
 * Create by chang
 * Date 2020/1/6
 * Time 11:36
 * 状态
 */

namespace app\common\service;

class StatusService {
	
	const STATUS_DISABLED = 0;
	const STATUS_NORMAL = 1;
	const STATUS_DELETE = 99;
	const STATUS_CART_BUY = 2;
	
	public static $userStatusList = [
		self::STATUS_NORMAL => '正常',
		self::STATUS_DISABLED => '禁用'
	];
	
	public static $goodsCategoryStatusList = [
		self::STATUS_NORMAL => '正常',
		self::STATUS_DISABLED => '禁用'
	];
	
	public static $goodsStatusList = [
		self::STATUS_NORMAL => '正常',
		self::STATUS_DISABLED => '下架'
	];
	
	public static $goodsSpecStatusList = [
		self::STATUS_NORMAL => '正常',
		self::STATUS_DELETE => '已删除'
	];
	
	public static $ReservationStatusList = [
		self::STATUS_NORMAL => '正常',
		self::STATUS_DELETE => '已删除'
	];
	
	const GOODS_TYPE_NORMAL = 1;
	const GOODS_TYPE_RESERVATION = 2;
	
	public static $goodsTypeList = [
		self::GOODS_TYPE_NORMAL => '普通商品',
		self::GOODS_TYPE_RESERVATION => '预约商品'
	];

	public static $cartStatusList = [
		self::STATUS_NORMAL => '正常',
		self::STATUS_DELETE => '删除',
		self::STATUS_CART_BUY => '已购买'
	];
	
	
	const POSTION_INDEX_BANNER = 1;
	const POSTION_INDEX_RECOMMEND = 2;
	const POSTION_INDEX_THEME = 3;
	
	public static $bannerPositionList = [
		self::POSTION_INDEX_BANNER => '首页轮播图(710*355)',
		self::POSTION_INDEX_RECOMMEND => '首页推荐(80*80)',
		self::POSTION_INDEX_THEME => '首页主题(345*200)'
	];
	
	const JUMY_TYPE_GOODS = 1;
	const JUMY_TYPE_CATE = 2;
	public static $bannerJumpTypeList = [
		self::JUMY_TYPE_GOODS => '商品详情',
		self::JUMY_TYPE_CATE => '分类'
	];
	
	const ORDER_TYPE_NORMAL = 1;
	const ORDER_TYPE_RESERVATION = 2;
	public static $orderTypeList = [
		self::ORDER_TYPE_NORMAL => '普通订单',
		self::ORDER_TYPE_RESERVATION => '预约订单'
	];
	
	const ORDER_WAIT_PAY = 0;
	const ORDER_WAIT_SHIP = 1;
	const ORDER_WAIT_SIGN = 2;
	const ORDER_DONE = 3;
	const ORDER_CLOSE = -1;
	const ORDER_RESERVATION_ING = 4;
	const ORDER_WAIT_LAST = 5;
	const ORDER_WAIT_LAST_OTHER = 6;
	public static $orderStatusList = [
		self::ORDER_WAIT_PAY => '待付款',
		self::ORDER_WAIT_SHIP => '待发货',
		self::ORDER_WAIT_SIGN => '待签收',
		self::ORDER_DONE => '完成',
		self::ORDER_CLOSE => '订单关闭',
		self::ORDER_RESERVATION_ING => '预约中',
		self::ORDER_WAIT_LAST => '待支付尾款',
		self::ORDER_WAIT_LAST_OTHER => '已支付尾款',
	];
	
	const PAY_TYPE_WEIXIN = 1;
	public static $payTypeList = [
		self::PAY_TYPE_WEIXIN => '微信支付'
	];
	
	const DEPOSIT_STATUS_PAY = 1;
	const DEPOSIT_STATUS_REFUND_ING = 2;
	const DEPOSIT_STATUS_REFUND_SUCCESS = 3;
	const DEPOSIT_STATUS_REFUND_FAIN = 4;
	public static $depositStatusList = [
		self::DEPOSIT_STATUS_PAY => '已支付',
		self::DEPOSIT_STATUS_REFUND_ING => '退款中',
		self::DEPOSIT_STATUS_REFUND_SUCCESS => '已退款',
		self::DEPOSIT_STATUS_REFUND_FAIN => '退款失败',
	];
	
	const PAYMENT_STATUS_WAIT = 0;
	const PAYMENT_STATUS_SUCCESS = 1;
	public static $parymentStatusList = [
		self::PAYMENT_STATUS_SUCCESS => '支付成功',
		self::PAYMENT_STATUS_WAIT => '待支付'
	];
	
	const ORDER_PAYMENT_STATUS_WAIT = 0;
	const ORDER_PAYMENT_STATUS_SUCCESS = 1;
	const ORDER_PAYMENT_STATUS_RESERVATION = 2;
	const ORDER_PAYMENT_REFUND_ING = 3;
	const ORDER_PAYMENT_REFUND_SUCCESS = 4;
	const ORDER_PAYMENT_REFUND_FAIL = 5;
	public static $orderPaymentStatusList = [
		self::ORDER_PAYMENT_STATUS_SUCCESS => '支付成功',
		self::ORDER_PAYMENT_STATUS_WAIT => '待支付',
		self::ORDER_PAYMENT_STATUS_RESERVATION => '订金支付成功',
		self::ORDER_PAYMENT_REFUND_ING => '退款中',
		self::ORDER_PAYMENT_REFUND_SUCCESS => '退款成功',
		self::ORDER_PAYMENT_REFUND_FAIL => '退款失败',
	];
	
	public static $videoStatusList = [
		self::STATUS_NORMAL => '显示',
		self::STATUS_DISABLED => '隐藏'
	];
	
	
	const ORDER_SHIPPING_SOME = 1;
	const ORDER_SHIPPING_WAIT_SIGN = 2;
	const ORDER_SHIPPING_SIGN = 3;
	
	public static $orderShippingList = [
		self::ORDER_SHIPPING_SOME => '部分发货',
		self::ORDER_SHIPPING_WAIT_SIGN => '待签收',
		self::ORDER_SHIPPING_SIGN => '已签收'
	];
	
	
	const COMMISSION_TYPE_ORDER = 1;
	const COMMISSION_TYPE_VIIEW = 2;
	const COMMISSION_TYPE_SHARE = 3;
	
	public static $commissionTypeList = [
		self::COMMISSION_TYPE_ORDER => '订单返利',
		self::COMMISSION_TYPE_VIIEW => '浏览商品',
		self::COMMISSION_TYPE_SHARE => '分享商品'
	];
	
	public static $promoterStatusList = [
		self::STATUS_NORMAL => '正常',
		self::STATUS_DISABLED => '禁用'
	];
	
	public static $sellerStatusList = [
		self::STATUS_NORMAL => '正常',
		self::STATUS_DISABLED => '禁用'
	];
	
	public static $orderCommentStatusList = [
		self::STATUS_NORMAL => '已评价',
		self::STATUS_DISABLED => ''
	];
	
	
	const CLOSE_USER = 1;
	const CLOSE_TIME = 2;
	const CLOSE_SYS = 3;
	
	
	public static $orderCloseType = [
		self::CLOSE_USER => '用户取消',
		self::CLOSE_TIME => '超时关闭',
		self::CLOSE_SYS => '系统操作'
	];
	
	CONST VIDEO_TYPE_LIKE = 1;
	const VIDEO_TYPE_VIEW = 2;
	public static $videoLikeTypeList = [
		self::VIDEO_TYPE_LIKE => '点赞',
		self::VIDEO_TYPE_VIEW => '浏览'
	];
	
	public static $messageStatusList = [
		self::STATUS_NORMAL => '已读',
		self::STATUS_DISABLED => '未读'
	];
	
	
	const SHIPPING_STATUS_DISABLED = 2;
	public static $shippingStatusList = [
		self::STATUS_NORMAL => '正常',
		self::SHIPPING_STATUS_DISABLED => '禁用'
	];
	
	
	const COMMISSION_STATUS_WAIT = 0;
	const COMMISSION_STATUS_SEND = 1;
	
	public static $commissionStatusList = [
		self::COMMISSION_STATUS_SEND => '已发放',
		self::COMMISSION_STATUS_WAIT => '待发放',
	];
	
	const  RESERVATION_ING = 0;
	const  RESERVATION_FAIL = 2;
	const  RESERVATION_PAY_FAIL = 3;
	const  RESERVATION_SUCCESS = 4;
	const  RESERVATION_WAIT_PAY = 5;
	public static $reservationStatus = [
		self::RESERVATION_ING => '进行中',
		self::RESERVATION_FAIL => '失败',
		self::RESERVATION_PAY_FAIL => '付款失败',
		self::RESERVATION_SUCCESS => '成功',
		self::RESERVATION_WAIT_PAY => '付尾款中',
	];
}
